import Request from './request.js'


const API = {
	addAddressBook: '/app/bus/addressBook',
    deleteAddressBook: '/app/bus/addressBook',
    addressBookList: '/app/bus/addressBook/myAddressList',
}

// 新增地址簿
export const addAddressBook = params => Request.post(API.addAddressBook, {}, {data: params})
// 修改地址簿
export const updateAddressBook = params => Request.put(API.addAddressBook, {}, {data: params})
// 删除地址簿
export const deleteAddressBook = (id) => Request.delete(`${API.deleteAddressBook}/${id}`)
// 查询地址簿列表
export const addressBookList = params => Request.get(API.addressBookList, {})